<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:32:"./themes/index/index\detail.html";i:1741138482;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <style>
        html, body {
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;
            overflow: hidden; /* 禁止滚动条 */
        }

        body {
            background-image: url('/public/static/images/bg2.png');
            background-size: cover; 
            background-position: center; 
            background-repeat: no-repeat; 
            display: flex;
            flex-direction: column;
        }

        .icon-bar {
            position: absolute;
            top: 30px;
            left: 30px;
        }


        .icon-bar button {
            background-color: #555;
            color: white;
            padding: 10px;
            border: none;
            cursor: pointer;
            float: right;
        }

        .icon-bar button:hover {
            background-color: #000;
        }
        .main{
            position: relative;
            width: 100%;
            height: auto;
            top:200px;
        }
        .left{
            width: 40%;
            position: relative;
            float: left;
        }
        .right{
            position: relative;
            width: 60%;
            float: left;
            font-size: 20px;
            font-weight: 600;
            text-indent: 2em; 
        }
        .title{
            position: relative;
            margin-left: 50px;
        }
        .title2{
            position: absolute;
            top: 30px;
            right: 50px;
        }

        .back{
            position: absolute;
            bottom: 30px;
            right: 50px;
        }

        .video-container {
            margin-top: 30px; /* 添加间距 */
            display: flex;
            justify-content: center;
        }

        video {
            width: 800px; /* 固定宽度 */
            height: 440px; /* 固定高度，16:9 比例 */
            border-radius: 10px; /* 圆角 */
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* 添加阴影 */
            object-fit: cover; /* 保证视频填充整个区域 */
        }
    </style>
</head>
<body>
    <div class="icon-bar">
        <button onclick="window.location.reload()"> <img src="/public/static/images/refresh.png" alt=""></button>
        <button onclick="window.location.href='home.html'"> <img src="/public/static/images/home.png" alt=""></button>
        <button onclick="window.history.forward()"> <img src="/public/static/images/forward.png" alt=""></button>
        <button onclick="window.history.back()"> <img src="/public/static/images/back.png" alt=""></button>
    </div>
<div class="title2">
    <img src="/public/static/images/title2.png" alt="" width="600" height="200">
</div>
<div class="main">
    <div class="title"><h1><?php echo $record['name']; ?></h1></div>
    <div style="margin-left: 50px;">
        <div class="left">
            <div class="left_3">
                <img src="/public/<?php echo $record['img']; ?>" alt="" width="200" height="200">
            </div>
        </div>
        <div class="right">
            <?php echo $record['desc']; ?>

            <!-- 视频展示 -->
            <?php if(!empty($record['video'])): ?>
            <div class="video-container">
                <video controls>
                    <source src="/public/<?php echo $record['video']; ?>" type="video/mp4">
                    您的浏览器不支持视频播放。
                </video>
            </div>
            <?php endif; ?>
        </div>
    </div>
</div>
</body>
</html>
